<!DOCTYPE html>
<html lang="zh-CN" ng-app="myapp">
	<head>
		<meta charset="utf-8">
		<title>注册页面</title>
		<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css" />
	</head>
	<body ng-controller="registerController" ng-init="user={}">
		<!--导航条-->
		<ng-include src="'nav.html'"></ng-include>
		<!--导航条-->
		<div class="container">
			<div class="row">
				<div class="col-md-6 col-md-offset-3">
					<form class="form-horizontal" name="myForm" novalidate>
						<div class="form-group">
							<label for="exampleInputName1" class="col-sm-2 control-label">用户名</label>
							<div class="col-sm-6">
								<input type="text" class="form-control" id="exampleInputName1" placeholder="用户名" name="username" required="required"
								ng-model="user.username" ng-blur="checkUsername()" ng-minlength="3" ng-maxlength="15">
								<span ng-show="myForm.username.$dirty">
									<span ng-show="myForm.username.$error.required">输入内容不能为空</span>
									<span ng-show="myForm.username.$error.minlength">长度不能少于3位</span>
									<span ng-show="myForm.username.$error.maxlength">长度不能多于15位</span>
								</span>
							</div>
						</div>
						<div class="form-group">
							<label for="inputPassword1" class="col-sm-2 control-label">密码</label>
							<div class="col-sm-6">
								<input type="password" class="form-control" id="inputPassword1" placeholder="密码" name="password1" required="required" ng-model="user.pwd" ng-minlength="6" ng-maxlength="16">
								<span ng-show="myForm.password1.$dirty">
									<span ng-show="myForm.password1.$error.required">输入内容不能为空</span>
									<span ng-show="myForm.password1.$error.minlength">长度不能少于6位</span>
									<span ng-show="myForm.password1.$error.maxlength">长度不能多于16位</span>
								</span>
							</div>
						</div>
						<div class="form-group">
							<label for="inputPassword2" class="col-sm-2 control-label">确认密码</label>
							<div class="col-sm-6">
								<input type="password" class="form-control" id="inputPassword2" placeholder="确认密码" name="password2" required="required" ng-model="password2" ng-minlength="6" ng-maxlength="16">
								<span ng-show="myForm.password2.$dirty">
									<span ng-show="password!=null&&myForm.password1.$error.required">输入内容不能为空</span>
									<span ng-show="password2!=null&&password1!=password2">两次密码不一致</span>
								</span>
							</div>
						</div>
						<div class="form-group">
							<label for="inputEmail" class="col-sm-2 control-label">Email</label>
							<div class="col-sm-6">
								<input type="email" class="form-control" id="inputEmail" placeholder="Email" name="email" required="required" ng-model="email">
								<span ng-show="myForm.email.$dirty">
									<span ng-show="myForm.email.$invalid">输入的内容不合法</span>
								</span>
							</div>
						</div>
						<div class="form-group">
							<label for="exampleInputName2" class="col-sm-2 control-label">姓名</label>
							<div class="col-sm-6">
								<input type="text" class="form-control" id="exampleInputName2" placeholder="姓名" name="name" required="required"
								ng-model="name" ng-minlength="2" ng-maxlength="10">
								<span ng-show="myForm.name.$dirty">
									<span ng-show="myForm.name.$error.required">输入内容不能为空</span>
									<span ng-show="myForm.name.$error.minlength">长度不能少于2位</span>
									<span ng-show="myForm.name.$error.maxlength">长度不能多于10位</span>
								</span>
							</div>
						</div>
						<div class="form-group">
							<label for="sexy" class="col-sm-2 control-label">性别</label>
							<div class="col-sm-6">
								<label class="radio-inline">
									<input type="radio" name="inlineRadioOptions" id="inlineRadio1" value="option1"> 男
								</label>
								<label class="radio-inline">
									<input type="radio" name="inlineRadioOptions" id="inlineRadio2" value="option2"> 女
								</label>
							</div>
						</div>
						<div class="form-group">
							<label for="inputDate" class="col-sm-2 control-label">出生日期</label>
							<div class="col-sm-6">
								<input type="date" class="form-control" id="inputdata" placeholder="年/月/日">
							</div>
						</div>
						<div class="form-group">
							<label for="inputEmail3" class="col-sm-2 control-label">验证码</label>
							<div class="col-sm-3">
								<input type="text" class="form-control" placeholder="验证码">
							</div>
							<div class="form-group">
								<img src="img/x1.png" />
							</div>
						</div>
						<div class="form-group">
							<label for="submit" class="col-sm-2 control-label"></label>
							<div class="col-sm-6">
								<button type="button" class="btn btn-default  btn-block" ng-click="registerSubmit()">注册</button>
							</div>
						</div>
					</form>
				</div>
			</div>
		</div>
	</body>
	<script src="js/angularjs/angular.min.1.5.8.js"></script>
	<script src="js/angularjs/angular-messages.js"></script>
	<script src="js/base/basese.js"></script>
	<script src="js/service/loginService.js"></script>
	<script src="js/controller/registerController.js"></script>
	<script src="js/controller/navController.js"></script>
</html>
